package com.zcf.mapper;

import com.zcf.pojo.Dining;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhouzhuang
 * @since 2018-11-28
 */
public interface DiningMapper extends BaseMapper<Dining> {

	/**
	 * 推荐店铺
	 */
	List<Dining> getTuijian(@Param("address")String address);

	/**
	 * 搜索
	 */
	List<Dining> queryCountSou(@Param("diningName") String diningName, @Param("productName") String productName);

	List<Dining> querydiningName(@Param("diningName") String diningName);

	/**
	 * 查询店铺
	 */
	List<Dining> queryCount(@Param("sum") int sum);

	List<Dining> queryXianJian(@Param("sum") Integer sum, @Param("lat1") Double lat1, @Param("lng1") Double lng1);

	int update(Dining dining);
}
